/*
 * Copyright @ 2016 com.szdtoo
 * easypro 上午11:47:48
 * All right reserved.
 *
 */
package com.he.hsdyc.model.msg;

/**
 * @desc: 错误码枚举（code<1400为成功；code>=1400为失败）
 * @author: jc
 * @createTime:
 * @version: 1.0
 */
public enum ErrorCode {
	SUCCESS(1200, "操作成功"),
	SUCCESS_LOGGED(1203,"已登录"),
	ERROR(1500, "操作失败"),
	ERROR_LOGIN(1600, "登录失败"),
	ERROR_TOKEN(1602,"TOKEN失效或者错误"),
	ERROR_ARG(1601, "参数错误"),
	ERROR_AUTH(1606, "认证失败"), 
	ERROR_QUERY(1608, "数据丢失"),
	JSON_PARSE_ERROR(10003,"Json解析错误"),
	UNKNOW_ERROR(16000,"未知错误"),
	ERROR_NO_GOOD(6001, "该商品不存在"),
	ERROR_NO_GET2(6001, "手慢拍大腿,抢光啦222222222"),
	ERROR_NO_GET(6001, "手慢拍大腿,抢光啦"),
	ERROR_TRY_AGAIN(6001, "换个姿势再试试");


	private final int code;
	private final String msg;

	/**
	 * @param code
	 * @param msg
	 */
	private ErrorCode(final int code, final String msg) {
		this.code = code;
		this.msg = msg;
	}

	/**
	 * @return the code
	 */
	public int getCode() {
		return code;
	}

	/**
	 * @return the msg
	 */
	public String getMsg() {
		return msg;
	}

}
